<!DOCTYPE html><html data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Excel导lua表工具 | 恶霸威的学习之路</title><meta name="keywords" content="java,lua,工具,excel"><meta name="author" content="恶霸威"><meta name="copyright" content="恶霸威"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="##前言    工作需要用到lua表，基于java实现###  1  表格结构    第一行：字段名  第二行：策划描述  第三行：数据类型（后面有对应）  第四行：类型含义（策划用）  第五行：导表控制行  第六行：数据默认行（后面会有这行的用法）  导出的表名和文件名是sheet名（支持多个sheet） 2  导出lua中的结构(优化过的)  InteractionTable.lua">
<meta property="og:type" content="article">
<meta property="og:title" content="Excel导lua表工具">
<meta property="og:url" content="https://simalaoshi.gitee.io/2019/03/27/Excel%E5%AF%BClua%E8%A1%A8%E5%B7%A5%E5%85%B7/index.html">
<meta property="og:site_name" content="恶霸威的学习之路">
<meta property="og:description" content="##前言    工作需要用到lua表，基于java实现###  1  表格结构    第一行：字段名  第二行：策划描述  第三行：数据类型（后面有对应）  第四行：类型含义（策划用）  第五行：导表控制行  第六行：数据默认行（后面会有这行的用法）  导出的表名和文件名是sheet名（支持多个sheet） 2  导出lua中的结构(优化过的)  InteractionTable.lua">
<meta property="og:locale">
<meta property="og:image" content="https://simalaoshi.gitee.io/img/cover.svg">
<meta property="article:published_time" content="2019-03-27T11:34:54.000Z">
<meta property="article:modified_time" content="2023-01-12T09:26:12.881Z">
<meta property="article:author" content="恶霸威">
<meta property="article:tag" content="java">
<meta property="article:tag" content="lua">
<meta property="article:tag" content="工具">
<meta property="article:tag" content="excel">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://simalaoshi.gitee.io/img/cover.svg"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://simalaoshi.gitee.io/2019/03/27/Excel%E5%AF%BClua%E8%A1%A8%E5%B7%A5%E5%85%B7/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true},
  copy: {
    success: 'Copy successfully',
    error: 'Copy error',
    noSupport: 'The browser does not support'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  date_suffix: {
    just: 'Just',
    min: 'minutes ago',
    hour: 'hours ago',
    day: 'days ago',
    month: 'months ago'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: {"chs_to_cht":"Traditional Chinese Activated Manually","cht_to_chs":"Simplified Chinese Activated Manually","day_to_night":"Dark Mode Activated Manually","night_to_day":"Light Mode Activated Manually","bgLight":"#49b1f5","bgDark":"#121212","position":"bottom-left"},
  source: {
    jQuery: 'https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js',
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css'
    },
    fancybox: {
      js: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js',
      css: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isanchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = { 
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2023-01-12 09:26:12'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    })(window)</script><link rel="stylesheet" href="/css/my.css"><meta name="generator" content="Hexo 5.4.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="author-avatar"><img class="avatar-img" src="/img/header.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data"><div class="data-item is-center"><div class="data-item-link"><a href="/archives/"><div class="headline">Articles</div><div class="length-num">20</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/tags/"><div class="headline">Tags</div><div class="length-num">12</div></a></div></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 清单</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li><li><a class="site-page" href="/Gallery/"><i class="fa-fw fas fa-images"></i><span> 照片</span></a></li></ul></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('/img/cover.svg')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">恶霸威的学习之路</a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 清单</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li><li><a class="site-page" href="/Gallery/"><i class="fa-fw fas fa-images"></i><span> 照片</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">Excel导lua表工具</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">Created</span><time class="post-meta-date-created" datetime="2019-03-27T11:34:54.000Z" title="Created 2019-03-27 11:34:54">2019-03-27</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2023-01-12T09:26:12.881Z" title="Updated 2023-01-12 09:26:12">2023-01-12</time></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">Post View:</span><span id="busuanzi_value_page_pv"></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><p>##前言<br>    工作需要用到lua表，基于java实现<br>###</p>
<ul>
<li>1<br>  表格结构<br>  <img src="/2019/03/27/Excel%E5%AF%BClua%E8%A1%A8%E5%B7%A5%E5%85%B7/1.png" alt="图片"><br>  第一行：字段名<br>  第二行：策划描述<br>  第三行：数据类型（后面有对应）<br>  第四行：类型含义（策划用）<br>  第五行：导表控制行<br>  第六行：数据默认行（后面会有这行的用法）<br>  导出的表名和文件名是sheet名（支持多个sheet）<br></li>
<li>2<br>  导出lua中的结构(优化过的)<br><br>  <a target="_blank" rel="noopener" href="https://github.com/SiMaLaoShi/ExcelTool/blob/master/InteractionTable.lua">InteractionTable.lua</a><br>  <img src="/2019/03/27/Excel%E5%AF%BClua%E8%A1%A8%E5%B7%A5%E5%85%B7/2.png" alt="图片">  <br>    </li>
<li>3<br>  使用方法<br>  <del>(如果是第一次使用)直接使用jar包运行即可，使用完成后有一个同级目录</del><ul>
<li>1 工作目录配置<br>在jar包的同级木新建一个config.properties或者直接用我的<br><a target="_blank" rel="noopener" href="https://github.com/SiMaLaoShi/ExcelTool/blob/master/Release/config.properties">config.propertie</a><br><br><img src="/2019/03/27/Excel%E5%AF%BClua%E8%A1%A8%E5%B7%A5%E5%85%B7/3.png" alt="图片"><br>Server:服务器表保存目录<br>Client:客户端表保存目录<br>lastPath:jar包自动生成的最后一个打开的工作目录</li>
<li>2<br>配置好后直接运行jar包即可，如果想要看输出日志用命令行运行即可 java -jar ExcelTool.jar</li>
</ul>
  <a target="_blank" rel="noopener" href="https://blog.uwa4d.com/archives/1490.html">参考链接</a><br>  <a target="_blank" rel="noopener" href="https://github.com/SiMaLaoShi/ExcelTool">本文git</a></li>
</ul>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">Author: </span><span class="post-copyright-info"><a href="mailto:undefined">恶霸威</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">Link: </span><span class="post-copyright-info"><a href="https://simalaoshi.gitee.io/2019/03/27/Excel%E5%AF%BClua%E8%A1%A8%E5%B7%A5%E5%85%B7/">https://simalaoshi.gitee.io/2019/03/27/Excel%E5%AF%BClua%E8%A1%A8%E5%B7%A5%E5%85%B7/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">Copyright Notice: </span><span class="post-copyright-info">All articles in this blog are licensed under <a target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a> unless stating additionally.</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/java/">java</a><a class="post-meta__tags" href="/tags/lua/">lua</a><a class="post-meta__tags" href="/tags/%E5%B7%A5%E5%85%B7/">工具</a><a class="post-meta__tags" href="/tags/excel/">excel</a></div><div class="post_share"><div class="social-share" data-image="/img/cover.svg" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/social-share.js/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/social-share.js/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2019/04/02/SVNHook/"><img class="prev-cover" src="/img/cover.svg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">Previous Post</div><div class="prev_info">SVN Hook</div></div></a></div><div class="next-post pull-right"><a href="/2019/03/25/lua%E4%BD%8D%E8%BF%90%E7%AE%97/"><img class="next-cover" src="/img/cover.svg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">Next Post</div><div class="next_info">lua位运算</div></div></a></div></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span> Related Articles</span></div><div class="relatedPosts-list"><div><a href="/2019/04/02/SVNHook/" title="SVN Hook"><img class="cover" src="/img/cover.svg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2019-04-02</div><div class="title">SVN Hook</div></div></a></div><div><a href="/2019/03/25/lua位运算/" title="lua位运算"><img class="cover" src="/img/cover.svg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2019-03-25</div><div class="title">lua位运算</div></div></a></div><div><a href="/2019/03/22/tolua中的一些分析/" title="tolua中的一些分析"><img class="cover" src="/img/cover.svg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2019-03-22</div><div class="title">tolua中的一些分析</div></div></a></div><div><a href="/2022/06/10/一百行代码实现一个简易的红点系统/" title="一百行代码实现一个简易的红点系统"><img class="cover" src="/img/cover.svg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2022-06-10</div><div class="title">一百行代码实现一个简易的红点系统</div></div></a></div><div><a href="/2022/06/10/一百行代码实现简易AStar/" title="一百行代码实现简易AStar"><img class="cover" src="/img/cover.svg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2022-06-10</div><div class="title">一百行代码实现简易AStar</div></div></a></div><div><a href="/2019/03/21/高性能的lua代码/" title="高性能的lua代码"><img class="cover" src="/img/cover.svg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2019-03-21</div><div class="title">高性能的lua代码</div></div></a></div></div></div><hr/><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i><span> Comment</span></div></div><div class="comment-wrap"><div><div class="vcomment" id="vcomment"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="card-info-avatar is-center"><img class="avatar-img" src="/img/header.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/><div class="author-info__name">恶霸威</div><div class="author-info__description"></div></div><div class="card-info-data"><div class="card-info-data-item is-center"><a href="/archives/"><div class="headline">Articles</div><div class="length-num">20</div></a></div><div class="card-info-data-item is-center"><a href="/tags/"><div class="headline">Tags</div><div class="length-num">12</div></a></div></div><a class="button--animated" id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/SiMaLaoShi"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/SiMaLaoShi" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="/1742495214qq@gmail.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a><a class="social-icon" href="https://www.zhihu.com/people/byxiao-wei" target="_blank" title="Zhihu"><i class="fab fa-zhihu"></i></a><a class="social-icon" href="tencent://AddContact/?fromId=50&amp;fromSubId=1&amp;subcmd=all&amp;uin=242863121" target="_blank" title=""><i class="fab fa-qq"></i></a><a class="social-icon" href="tencent://AddContact/?fromId=50&amp;fromSubId=1&amp;subcmd=all&amp;uin=242863121" target="_blank" title=""><i class="fab fa-weibo"></i></a><a class="social-icon" href="tencent://AddContact/?fromId=50&amp;fromSubId=1&amp;subcmd=all&amp;uin=242863121" target="_blank" title=""><i class="fab fa-weixin"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>Announcement</span></div><div class="announcement_content">泯然众人矣！</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>Recent Post</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2022/09/02/pkg-doctor%E5%8D%87%E7%BA%A7%E7%BC%96%E8%AF%91%E6%8C%87%E5%8D%97/" title="pkg-doctor升级编译指南"><img src="/img/cover.svg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="pkg-doctor升级编译指南"/></a><div class="content"><a class="title" href="/2022/09/02/pkg-doctor%E5%8D%87%E7%BA%A7%E7%BC%96%E8%AF%91%E6%8C%87%E5%8D%97/" title="pkg-doctor升级编译指南">pkg-doctor升级编译指南</a><time datetime="2022-09-02T10:04:48.000Z" title="Created 2022-09-02 10:04:48">2022-09-02</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/06/10/%E4%B8%80%E7%99%BE%E8%A1%8C%E4%BB%A3%E7%A0%81%E5%AE%9E%E7%8E%B0%E4%B8%80%E4%B8%AA%E7%AE%80%E6%98%93%E5%AF%BC%E8%A1%A8%E5%B7%A5%E5%85%B7/" title="一百行代码实现一个简易导表工具"><img src="/img/cover.svg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="一百行代码实现一个简易导表工具"/></a><div class="content"><a class="title" href="/2022/06/10/%E4%B8%80%E7%99%BE%E8%A1%8C%E4%BB%A3%E7%A0%81%E5%AE%9E%E7%8E%B0%E4%B8%80%E4%B8%AA%E7%AE%80%E6%98%93%E5%AF%BC%E8%A1%A8%E5%B7%A5%E5%85%B7/" title="一百行代码实现一个简易导表工具">一百行代码实现一个简易导表工具</a><time datetime="2022-06-10T18:34:09.000Z" title="Created 2022-06-10 18:34:09">2022-06-10</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/06/10/%E4%B8%80%E7%99%BE%E8%A1%8C%E4%BB%A3%E7%A0%81%E5%AE%9E%E7%8E%B0%E7%AE%80%E6%98%93AStar/" title="一百行代码实现简易AStar"><img src="/img/cover.svg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="一百行代码实现简易AStar"/></a><div class="content"><a class="title" href="/2022/06/10/%E4%B8%80%E7%99%BE%E8%A1%8C%E4%BB%A3%E7%A0%81%E5%AE%9E%E7%8E%B0%E7%AE%80%E6%98%93AStar/" title="一百行代码实现简易AStar">一百行代码实现简易AStar</a><time datetime="2022-06-10T15:10:56.000Z" title="Created 2022-06-10 15:10:56">2022-06-10</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/06/10/%E4%B8%80%E7%99%BE%E8%A1%8C%E4%BB%A3%E7%A0%81%E5%AE%9E%E7%8E%B0%E4%B8%80%E4%B8%AA%E7%AE%80%E6%98%93%E7%9A%84%E7%BA%A2%E7%82%B9%E7%B3%BB%E7%BB%9F/" title="一百行代码实现一个简易的红点系统"><img src="/img/cover.svg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="一百行代码实现一个简易的红点系统"/></a><div class="content"><a class="title" href="/2022/06/10/%E4%B8%80%E7%99%BE%E8%A1%8C%E4%BB%A3%E7%A0%81%E5%AE%9E%E7%8E%B0%E4%B8%80%E4%B8%AA%E7%AE%80%E6%98%93%E7%9A%84%E7%BA%A2%E7%82%B9%E7%B3%BB%E7%BB%9F/" title="一百行代码实现一个简易的红点系统">一百行代码实现一个简易的红点系统</a><time datetime="2022-06-10T14:54:19.000Z" title="Created 2022-06-10 14:54:19">2022-06-10</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/02/17/unity%E6%B7%B1%E5%BA%A6profile-deep-profile/" title="unity深度profile(deep-profile)"><img src="/img/cover.svg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="unity深度profile(deep-profile)"/></a><div class="content"><a class="title" href="/2022/02/17/unity%E6%B7%B1%E5%BA%A6profile-deep-profile/" title="unity深度profile(deep-profile)">unity深度profile(deep-profile)</a><time datetime="2022-02-17T16:23:03.000Z" title="Created 2022-02-17 16:23:03">2022-02-17</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2023 By 恶霸威</div><div class="framework-info"><span>Framework </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>Theme </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="Read Mode"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="Toggle Between Light And Dark Mode"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="Toggle between single-column and double-column"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="Setting"><i class="fas fa-cog fa-spin"></i></button><button id="chat_btn" type="button" title="rightside.chat_btn"><i class="fas fa-sms"></i></button><a id="to_comment" href="#post-comment" title="Scroll To Comments"><i class="fas fa-comments"></i></a><button id="go-up" type="button" title="Back To Top"><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.js"></script><div class="js-pjax"><script>function loadValine () {
  function initValine () {
    let initData = {
      el: '#vcomment',
      appId: '',
      appKey: '',
      placeholder: 'Please leave your footprints',
      avatar: 'monsterid',
      meta: 'nick,mail,link'.split(','),
      pageSize: '10',
      lang: 'en',
      recordIP: false,
      serverURLs: '',
      emojiCDN: '',
      emojiMaps: "",
      enableQQ: false,
      path: window.location.pathname,
    }

    if (true) { 
      initData.requiredFields= ('nick,mail'.split(','))
    }
    
    if (false) {
      const otherData = false
      initData = Object.assign(initData, otherData)
    }
    
    const valine = new Valine(initData)
  }

  if (typeof Valine === 'function') initValine() 
  else getScript('https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js').then(initValine)
}

if ('Valine' === 'Valine' || !true) {
  if (true) btf.loadComment(document.getElementById('vcomment'),loadValine)
  else setTimeout(loadValine, 0)
} else {
  function loadOtherComment () {
    loadValine()
  }
}</script></div><script defer="defer" id="ribbon" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-ribbon.min.js" size="150" alpha="0.6" zIndex="-1" mobile="false" data-click="false"></script><script defer="defer" id="fluttering_ribbon" mobile="true" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-fluttering-ribbon.min.js"></script><script src="//code.tidio.co/null.js" async="async"></script><script>function onTidioChatApiReady() {
  window.tidioChatApi.hide();
  window.tidioChatApi.on("close", function() {
    window.tidioChatApi.hide();
  });
}
if (window.tidioChatApi) {
  window.tidioChatApi.on("ready", onTidioChatApiReady);
} else {
  document.addEventListener("tidioChat-ready", onTidioChatApiReady);
}

var chatBtnFn = () => {
  document.getElementById("chat_btn").addEventListener("click", function(){
    window.tidioChatApi.show();
    window.tidioChatApi.open();
  });
}
chatBtnFn()
</script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script><script src="https://cdn.jsdelivr.net/gh/metowolf/MetingJS@1.2/dist/Meting.min.js"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"log":false,"model":{"jsonPath":"/live2dw/assets/miku.model.json"},"display":{"position":"right","width":150,"height":300},"mobile":{"show":true}});</script></body></html>